package com.fy.module.qu.mapper;

import com.fy.module.qu.entity.QuRepo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fy.module.repo.entity.Repo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 试题题库 Mapper 接口
 * </p>
 *
 * @author zhu
 * @since 2023-03-21
 */
public interface QuRepoMapper extends BaseMapper<QuRepo> {

    @Select("select el_repo.id from el_repo LEFT JOIN el_qu_repo\n" +
            "on el_repo.id=el_qu_repo.repo_id\n" +
            "WHERE el_qu_repo.qu_id=#{quId}")
    List<String> findRepoList(String quId);
}
